package kr.hkit.powerjava.chapter08.work;

class Box {
	 
	 int width;
	 int height;
	 int length;
	 
	 public int getWidth() {
	  return width;
	 }

	 public void setWidth(int width) {
	  this.width = width;
	 }

	 public int getHeight() {
	  return height;
	 }

	 public void setHeight(int height) {
	  this.height = height;
	 }

	 public int getLenght() {
	  return length;
	 }

	 public void setLenght(int lenght) {
	  this.length = lenght;
	 }
	
	 public int getVolume() {
	  int volume = this.width * this.height * this.length;
	  return volume;
	 }
	
	 public void print(){
	  System.out.println("width = "+this.width+" height = "+this.height+" length = "+this.length); 
	 }
	}

	
